package cn.edu.sjtu.flaw_detection.dto;

import cn.edu.sjtu.flaw_detection.util.MathUtil;
import lombok.Builder;
import lombok.Data;

/** for mock */
// 制坯
@Data
@Builder
class MockData {
  private Double detectThickness;
  private Double detectInsideDiameter;
  private Double detectLength;
  private Double detectVibration;

  static MockData genRandomData() {
    return MockData.builder()
        .detectThickness(MathUtil.range(2.9, 3.2))
        .detectInsideDiameter(MathUtil.range(990, 1010))
        .detectLength(MathUtil.range(26640, 26652))
        .detectVibration(MathUtil.range(0, 0.5))
        .build();
  }
}
